import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DashboardService } from './dashboard.service';
import { DashboardController } from './dashboard.controller';
import { Server } from '../entities/server.entity';
import { ServerMetric } from '../entities/server-metric.entity';
import { Project } from '../entities/project.entity';
import { ProjectMetric } from '../entities/project-metric.entity';
import { Alert } from '../entities/alert.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Server, 
      ServerMetric, 
      Project, 
      ProjectMetric, 
      Alert
    ]),
  ],
  providers: [DashboardService],
  controllers: [DashboardController],
  exports: [DashboardService],
})
export class DashboardModule {}